package com.github.caijh.mall.store.service;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.IService;
import com.github.caijh.mall.common.PageParams;
import com.github.caijh.mall.store.model.StoreProduct;
import com.github.caijh.mall.store.model.StoreProductDescription;
import com.github.caijh.mall.store.request.StoreProductDescriptionSearchRequest;

public interface StoreProductDescriptionService extends IService<StoreProductDescription> {

    List<StoreProductDescription> getList(StoreProductDescriptionSearchRequest request, PageParams pageParams);

    String findStoreProductDescription(int productId, int type);

    /**
     * 根据商品id和type删除对应描述
     *
     * @param productId 商品id
     * @param type      类型
     */
    void deleteByProductId(int productId, int type);

    void updateStoreProductDescription(StoreProduct product, String content);

}
